package com.example.demo;

import lombok.Builder;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;

import java.util.ArrayList;
import java.util.List;


/**
 * Created by Arat.Wu on 2018/10/08.
 */
@Component
@ConfigurationProperties("demo")
@Data
@Builder
public class JavaConfig {

    public String info;

    public List<Student> student;

    @Data
    @Builder
    public static class Student {

        private Long id;

        private String name;
    }



}
